<include file="default/public/header_common" />

<div id="mx-tabs" class="am-tabs am-tabs-d2 ml-0 mr-0 pro-tab">
  <ul class="am-tabs-nav am-cf">
    <li class=""><a href="{:U('Wap/UserOrder/nopayList')}">待付款</a></li>
    <li class=""><a href="{:U('Wap/UserOrder/noShipping')}">待发货</a></li>
    <li class="am-active"><a href="{:U('Wap/UserOrder/noSign')}">待签收</a></li>
    <li class=""><a href="{:U('Wap/UserOrder/serviceList')}">售后服务</a></li>
  </ul>
  <div class="am-tabs-bd">
    <div data-tab-panel-0 class="am-tab-panel am-active" style="padding: 0;">
      <ul class="am-list pro-list">
      <volist name="order['order']" id="vo">
        <li>
          <div class="pl-top"><span class="c-red am-fr">待签收</span>订单号：<a href="{:U('Wap/UserOrder/toCheckPay/orderId/' . $vo['orderId'])}" >{$vo['orderNo']}</a></div>
          <volist name="vo['goods']" id="v">
          <div class="am-g <if condition='$key != 0'>order-goods</if>">
            <div class="am-u-sm-4 am-list-thumb"> <a href="{:U('Wap/Index/goodsDetail/id/' . $v['goodsId'])}" class=""><div class="picauto"><img src="/{$v['goodsThumbs']}" /></div></a> </div>
            <div class="am-u-sm-8 am-list-main">
              <h3 class="am-list-item-hd"><a href="{:U('Wap/Index/goodsDetail/id/' . $v['goodsId'])}" class="c-333">{$v['goodsName']}</a></h3>
              <div class="am-list-item-text"><span class="am-fr">数量：{$v['goodsNumber']}</span>合作价：<span class="c-red">¥{$v['shopPrice']}</span></div>
            </div>
          </div>
          </volist>
          <div class="pl-bottom"><span class="am-fr"><a href="http://m.kuaidi100.com/index_all.html?type={$vo['expressName']}&postid={$vo['expressNo']}" class="c-999">查看物流</a> <a href="javascript:confirmOrder({$vo['orderId']});" class="am-btn am-btn-warning am-radius am-btn-xs">确认收货</a></span>实付：<span class="c-red">¥{$vo['totalMoney'] + $vo['postage'] + $vo['supPrice'] + $vo['supPostage']}</span></div>
        </li>
        </volist>
      </ul>
    </div>
  </div>
  <div style="clear:both;"></div>
  <if condition="!empty($order['order'])">
  <ul data-am-widget="pagination" class="am-pagination am-pagination-select">
      <if condition="$order['current'] != 1">
        <li class="am-pagination-prev "> <a href="{:U('Wap/UserOrder/noSign/page/' . ($order['current']-1))}">上一页</a> </li>
      </if>
      <li class="am-pagination-select">
        <select>
          <option class="">{$order['current']} / {$order['sumpage']} </option>
        </select>
      </li>
      <if condition="$order['current'] != $order['sumpage']">
        <li class="am-pagination-next "> <a href="{:U('Wap/UserOrder/noSign/page/' . ($order['current']+1))}">下一页</a> </li>
      </if>
    </ul>
    </if>
</div>
<script src="__ROOT__/Apps/Wap/View/default/assets/js/jquery.min.js"></script> 
<script src="__ROOT__/Apps/Wap/View/default/assets/js/amazeui.min.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
function confirmOrder(id) {
	$.post("{:U('Wap/UserOrder/confirm')}",{orderId:id},function(data,textStatus){
		var json = MXC.toJson(data);
		if(json.code == 1) {
			window.location = "{:U('Wap/UserOrder/serviceList')}";
		} else {
			alert('参数错误，请重试！');
		}
	});
}
</script>
</body>
</html>
